home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
Software
/
Vyzkuste
/
xsetup
/
_SETUP.2
/
Group3
/
XQ WinNT CrashControl 2.xpl
< prev
next >
Wrap
Text File
|
1999-09-08
|
1KB
|
47 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="1"
"UIPATH"="System\Misc"
"NAME"="Crash Control #2"
"VERSION"="1.00"
"WARNING"="1"
"LANGUAGE"="VBScript"
"TEXT 1"="Automatically Reboot after crash (Blue Screen)"
"DESCRIPTION 1"="This option requires at least a two MB swapfile on your system drive (environment variable "%SystemDrive%").
"DESCRIPTION 2"="Otherwise, enabling this option may prevent the system from running properly if the swap file has been moved to another drive.
"DESCRIPTION 3"="More options can be configured using "Control Panel" -> "System" -> "Startup/Shutdown"."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com"
"COMMENT 2"="Thanks to Pierre Szwarc for the "this might crash" tip!"
sPath="HKLM\System\CurrentControlSet\Control\CrashControl\"
sAR="AutoReboot"
Sub Plugin_Initialize
if RegPathExists(sPath)=false then
Call Disable
else
i=RegReadValue(sPath & sAR)
if i=1 then Call SetUIElement(1,True)
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=true then
Call RegWriteValue(sPath & sAR,1,2)
else
Call RegWriteValue(sPath & sAR,0,2)
end if
Call Restart
End Sub
Sub Plugin_Terminate
End Sub